//
//  MKUIElementViewSwitch.h
//  MKUI
//  右侧位置放置一个UISwitch
//  Created by 苏尚进 on 2023/7/10.
//  Copyright © 2023 moon. All rights reserved.
//

#import "MKUIElementViewBase.h"

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementViewSwitch : MKUIElementViewBase
@property(nonatomic,strong) UISwitch *switchView;
@property(nonatomic,getter=isOn) BOOL on;
@property(nonatomic,copy,nullable) void(^whenChange)(MKUIElementViewSwitch *el,BOOL on);
@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementListViewCellSwitch : MKUIElementListViewCellBase
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewSwitch *elementView;
#pragma clang diagnostic pop
@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface MKUIElementTableViewCellModelSwitch : MKUIElementTableViewCellModelBase
@property(nonatomic,assign) BOOL el_on;
@property(nonatomic,copy,nullable) void(^el_whenSwitchChange)(MKUIElementTableViewCellModelSwitch *cm,BOOL on);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewSwitch *el_elementView;
#pragma clang diagnostic pop
@end

@interface MKUIElementTableViewCellSwitch : MKUIElementTableViewCellBase
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-property-synthesis"
@property(nonatomic,readonly,nullable) __kindof MKUIElementViewSwitch *elementView;
#pragma clang diagnostic pop
@end
NS_ASSUME_NONNULL_END
